<?php

namespace app\qrcode\controller;
use app\common\service\xzm\PropertyTypeService;
use app\common\service\xzm\PropertyService;
use app\common\service\sys\DictService;
use think\facade\Request;
use app\common\controller\Base;
/**
 * 生成二维码  控制器
 * @author 龙
 * @update  2022-011-28
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */

class Erweima extends Base
{
    //资产详情
    public   function  propertyinfo()
    {
        $id = input('id/d', 0);
        if ($id === 0) {
            return _jerr(1022);
        }
        if ($this->request->isGet()) {
            $data = (new PropertyService())->getpropertyinfo($id);
            $data['propertytypeList'] = (new PropertyTypeService())->_list($data);
            //取出字典
            $data['sysdict'] = (new DictService())->getDictAll(env('COMPANY_ID',11)); //默认 盛筑科技 ID 11
            return json($data);
        }
        return _jerr(1000);
    }
}
